<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>findTest</title>
	<script src="../../dist/Free.js"></script>
</head>

<body>
	<script>
		// 定义一个数组
		let arr = [1, 2, 3, 4, 5, 6, 1023,1024];

		// 返回数组中大于1000的第一个数
		let result = $.arrayUtils.find(arr, (item, index) => {
			return item > 1000;
		})
		console.log(result);
		
		result = $.arrayUtils.find(arr);
		console.log(result);

		// result = $.arrayUtils.find("456",(item, index) => {
		// 	return item > 1000;
		// });

		result = $.arrayUtils.find(arr,'demo');
	</script>
</body>

</html>